	<h3 style="visibility: visible; text-align: center;"><span><?php echo $APPLICATION_product; ?></span> <?php echo _DISCOVERY .' '. _DASHBOARD; ?></h3>


		<?php

			if ( $discovered_APP == 'preinstall' ) {	

				// Post any messages
//				echo $dashmsg_MESSAGE;

				$msgctr_WARNING .= '<p class="warning">TSW-'. _msgctr_APPNFOUND .'</p>';
				$msgctr_MESSAGE .= '<p class="message">TSM-'. _msgctr_PREASSUME .'</p>';

				if ( file_exists( '../index.php' ) ) {
					$msgctr_NOTICE .= '<p class="notice">TSN-'. _msgctr_PREIDXFND .'</p>';
					}


				if ( $cfg_FILE ) {
					$msgctr_NOTICE .= '<p class="notice">TSN-'. _msgctr_PRECFGFND .'</p>';
					}

			} else {
			
				if ( !file_exists( $cfg_FILE ) ) {
					$msgctr_MESSAGE .= '<p class="message">TSM-'. _msgctr_POSASSUME .' '. $discovered_APP .'</p>';
					$msgctr_NOTICE .= '<p class="notice">TSN-'. _msgctr_POSCFGNFND .' ( '. _LOOKFOR .' '.$cfg_FILE .' )</p>';
					}


///					$dashmsg_MESSAGE .= '<p class="success">'. _dashmsg_APPFOUND .' <b>'. $discovered_APP .'</b></p>';

					echo $dashmsg_MESSAGE;	
					}
		?>

<!--//
	<table border="1" cellpadding="0" cellspacing="0" width="100%" valign="top">
	<tr>
		<td class="cell_data" style="border: none; padding-left: 0px;">d</td>
	</tr>
	<tr>
		<td class="discovery_head"><h4 style="visibility: visible; margin-bottom: 0px;"><span class="discovery_head_span"><?php echo $APPLICATION_product; ?></span> Instance</h4></td>
	</tr>
	<tr>
		<td style="max-height: 6px; height: 6px;"></td>
	</tr>
	<tr>
		<td class="cell_data" style="border: none;">

		</td>
	</tr>
		<?php
		/*
		  if ( (( $isJVER == '10' ) || ( $isJVER == '15' )) && ( (file_exists( '../index.php')) || (file_exists( '../administrator/index.php')) ) ){ ?>

		<tr>
<!--//			<td class="td_info" valign="top" width="3%" rowspan="4">&nbsp;</td>  //-->
			<td class="cell_head" valign="middle" width="32%"><strong>Product: </strong></td>
			<td class="cell_data" valign="middle" width="65%"><strong><?php echo $_VERSION->PRODUCT; ?></strong></td>
		</tr>
		<tr>
			<td class="deinfo_sechead" valign="middle"><strong>Status: </strong></td>
			<td class="deinfo_content" valign="middle"><?php echo $_VERSION->DEV_STATUS; ?></td>
		</tr>
		<tr>
			<td class="deinfo_sechead" valign="middle"><strong>Version: </strong></td>
			<td class="deinfo_content" valign="middle"><?php echo $_VERSION->RELEASE .'.'. $_VERSION->DEV_LEVEL .' [ '. $_VERSION->CODENAME .' ]'; ?></td>
		</tr>
		<tr>
			<td class="deinfo_sechead" valign="middle"><strong>Date: </strong></td>
			<td class="deinfo_content" valign="middle"><?php echo $_VERSION->RELDATE .' '. $_VERSION->RELTIME .' '. $_VERSION->RELTZ; ?></td>
		</tr>




		<?php  } else if ( (( $isJVER == "PI" ) || (!file_exists('../index.php')) || (!file_exists('../administrator/index.php'))) && (file_exists( '../configuration.php')) ) {
		// Somehow Joomla! is in a weird state, JTS has managed to find a configuration file but no version information or thinks J! is not installed yet.

		echo "<tr><td>";
		
		echo "<div class='hswarn' style='width: 84%';><strong class='hswarn'>Warning</strong><br />It appears that Joomla! is either partially configured, has some corrupt default files (configuration.php or version.php) or an incomplete upload has occured.</div>";

		echo "<div style='width: 86%;' align='center' class='hsnote'><strong class='hsnote'>Note</strong><br />Some of the Joomla! Tool Suite functionailty may be imparied at this time. Please refer to the JTS Status Meassges for more information</div>";

		$jtsStatus_MSG	.=	"<img hspace='3' align='left' width='16' height='16' src='assets/img/switch_f2.png'><strong style='color: maroon;'>Conflicts Found.</strong><br />- Incomplete Upload?<br /><hr size='1' color='#d0d0d0'>";
		echo "</td></tr>";
		// BUT.... simply inform the user and still run the Pre-Install checks.
		
		
		} else if (( $isJVER == "PI" ) && ( (!file_exists( '../configuration.php')) || (!file_exists( '../includes/version.php')) || ( (!file_exists( '../administrator/index.php')) || (!file_exists( '../index.php'))  ) ) ) {
		// If I can't find either a version.php (producing PI) or a configuration.php, then I must assume this is a Pre-Install with no files uploaded yet.

		echo "<tr><td>";
		
		echo "<div class='hsinfo' style='width: 89%';><strong class='hsinfo'>Information</strong><br />It appears that Joomla! is not yet uploaded to the server, so we are going to assume a Pre-Installation check is required.</div>";
		
		echo "<div style='width: 91%;' align='center' class='hsnote'><strong class='hsnote'>Note</strong><br />Some of the Joomla! Tool Suite functionailty has been disabled at this time. Please refer to the JTS Status Meassges for more information</div>";

		$jtsStatus_MSG	.=	"<img hspace='3' align='left' width='16' height='16' src='assets/img/apply.png'><strong>Joomla! Not Found.</strong><br />- Files Not Present.<br /><hr size='1' color='#d0d0d0'>";
		echo "</td></tr>";
		// BUT.... simply inform the user and still run the Pre-Install checks

		}
		
		if ( ( $isJVER != "PI" ) && ( (!file_exists( '../administrator/index.php')) || (!file_exists( '../index.php')) ) ) {
		// If I can't find either a version.php (producing PI) or a configuration.php, then I must assume this is a Pre-Install with no files uploaded yet.

		echo "<tr><td colspan='3'>";
				
		echo "<div class='hswarn' style='width: 84%';><strong class='hswarn'>Warning</strong><br />A conflict or configuration mismatch was found<br />It appears that Joomla! is either partially configured, has some corrupt default files (configuration.php, index.php, administrator/index.php or version.php) or an incomplete upload has occured.</div>";

		echo "<div style='width: 86%;' align='center' class='hsnote'><strong class='hsnote'>Note</strong><br />Although JTS detected a Joomla! instance, it would appear that there is still a problem.</div>";

		$jtsStatus_MSG	.=	"<img hspace='3' align='left' width='16' height='16' src='assets/img/switch_f2.png'><strong style='color: maroon;'>Conflicts Found.</strong><br />- Incomplete Upload?<br /><hr size='1' color='#d0d0d0'>";
		echo "</td></tr>";
		// BUT.... simply inform the user and still run the Pre-Install checks.
		}

*/

		?>

		</table>


<br clear="all" />
//-->

		<table border="0" cellpadding="0" cellspacing="2" width="96%">
		<tr>
			<td class="discovery_head" colspan="2"><h4 style="visibility: visible; margin-bottom: 0px;"><span class="discovery_head_span"><?php echo _HOST; ?></span> <?php echo _ENVIRONMENT; ?></h4></td>
		</tr>
					<tr><td class="spacer" colspan="3"></td></tr>
		<tr>
			<td class="cell_head_titles" valign="middle" width="35%"><strong><?php echo _HOSTNAME; ?>: </strong></td>
			<td class="cell_data" valign="middle" width="65%"><?php echo @php_uname(n); ?></td>
		</tr>
		<tr>
			<td class="cell_head_titles" valign="middle"><strong><?php echo _ARCHITECTURE; ?>: </strong></td>
			<td class="cell_data" valign="middle"><?php echo @php_uname(m) ." ( ". (substr(PHP_OS, 0, 10)) ." )"; ?></td>
		</tr>
		<tr>
			<td class="cell_head_titles" valign="middle"><strong><?php echo _HOST_IP; ?>: </strong></td>
			<td class="cell_data" valign="middle"><?php if (function_exists( 'shell_exec' )) { echo @gethostbyname(trim(`hostname`)); } else { echo  $_SERVER['SERVER_ADDR'] ." <b><font color='red'>*</font></b>"; } ?></td>
		</tr>
		<tr>
			<td class="cell_head_titles" valign="top"><strong><?php echo _PLATFORM; ?>: </strong></td>
			<td class="cell_data" valign="top"><?php echo @php_uname(s); ?> <?php echo @php_uname(r); ?> <?php echo @php_uname(v); ?></td>
		</tr>
		</table>

<br />

		<table border="0" cellpadding="0" cellspacing="2" width="96%">
		<tr>
			<td class="discovery_head" colspan="2"><h4 style="visibility: visible; margin-bottom: 0px;"><span class="discovery_head_span">PHP</span> Environment</h4></td>
		</tr>
					<tr><td class="spacer" colspan="3"></td></tr>
                        <tr>
						    <td class="cell_head_titles" width="35%"><b>PHP Version</b></td>
							<td class="cell_data" width="65%"><?php echo phpversion(); ?></td>
						</tr>
                        <tr>
						    <td class="cell_head_titles">PHP API</td>
							<td class="cell_data"><?php echo php_sapi_name(); ?></td>
						</tr>
                        <tr>
						    <td class="cell_head_titles">Zend Version</td>
							<td class="cell_data"><?php echo zend_version(); ?>
							</td>
						</tr>
                        <tr>
						    <td class="cell_head_titles">Disabled Functions</td>
							<td class="cell_data">
							<?php
                            if (ini_get('disable_functions')) { echo (ini_get('disable_functions')); }
                            else if (!ini_get('disable_functions')) { echo "<i>There are no disabled functions.</i>"; }
							?>
							</td>
						</tr>
			</table>


<br />

		<table border="0" cellpadding="0" cellspacing="2" width="96%">
		<tr>
			<td class="discovery_head" colspan="2"><h4 style="visibility: visible; margin-bottom: 0px;"><span class="discovery_head_span">Database</span> Environment</h4></td>
		</tr>
					<tr><td class="spacer" colspan="3"></td></tr>
                        <tr>
						    <td class="cell_head_titles" width="35%"><b>MySQL Version</b></td>
							<td class="cell_data" width="65%"><?php echo @mysql_get_server_info(); ?></td>
						</tr>
                        <tr>
						    <td class="cell_head_titles">Client Version</td>
							<td class="cell_data"><?php echo @mysql_get_client_info(); ?></td>
						</tr>
                        <tr>
						    <td class="cell_head_titles">Host Info</td>
							<td class="cell_data"><?php echo @mysql_get_host_info(); ?></td>
						</tr>
			</table>
